<table width="100%">
{if $countTrans != 0}
<tr>
	<td valign="top">
		<table border="1" align="center" width="100%" cellpadding="5" cellspacing="0">
		<tr>
			<td class="table2"></td>
			<td class="table1" colspan="4" width="50%">Party : {$transArray[0].partyName}</td>
			<td class="table1" colspan="1" width="50%">Balance :{$totalJamaUdhar} {$jamaUdharWord}</td>
	  </tr>	
		<tr>
			<td class="table2"></td>
			<td class="table1" colspan="3">Phone No : {$transArray[0].mobile1}</td>
			<td class="table1" colspan="5">City  : {$transArray[0].city}</td>
	  </tr>	
	  <tr>
	  	<td class="table2"></td>
	  	<td class="table2" align="center" style="border-right:2px solid red;">JAMA</td>
	  	<td class="table2" align="center" colspan="4">UDHAR</td>
	  </tr>
	  <tr>
	  <td colspan=4 width="50%" valign="top">
	    <table border="0" width="100%">
	    <tr>
	    	<td class="table1"></td>
	    	<td class="table1" align="center">RUPIYA</td>
	    	<td class="table1" align="center">DATE</td>
	    	<td class="table1" align="center">VIGAT</td>
	    </tr>
	    {section name=sec loop=$transArray}
	      {if $transArray[sec].jamaRupiya != 0}
	        <tr>
	        	<td><a href="partyRecordDelete.php?transactionId={$transArray[sec].transactionId}" onclick="return myFunction();"><img src="./images/deleteIcon.png" height="20px" width="20px"></a></td>
	        	<td align="right">{$transArray[sec].jamaRupiya}</td>
	        	<td align="center">{$transArray[sec].date|date_format :"%d-%m-%Y"}</td>
	        	<td align="center">{$transArray[sec].jamaVigat}</td>
	        </tr>
	      {/if}
	    {/section}
	    </table>
	  </td>
	  <td colspan=5 valign="top" width="60%">
	    <table border="0" width="100%">
	    	<tr>
	    		<td class="table1"></td>
	      	<td class="table1" align="center">RUPIYA</td>
	      	<td class="table1" align="center">VIGAT</td>
	      	<td class="table1" align="center">VAJAN/gm</td>
	      	<td class="table1" align="center">BHAV/10gm</td>
	      	<td class="table1" align="center">Date</td>
	      </tr>
	     {section name=sec loop=$transArray}
	     {if $transArray[sec].udhaarRupiya != 0}
	      <tr>
	      	<td><a href="partyRecordDelete.php?transactionId={$transArray[sec].transactionId}" onclick="return myFunction();"><img src="./images/deleteIcon.png" height="20px" width="20px"></a></td>
	      	<td align="right">{$transArray[sec].udhaarRupiya}</td>
	      	<td align="center">{$transArray[sec].udhaarVigat}</td>
	      	<td align="right">{$transArray[sec].udhaarVajan}</td>
	      	<td align="right">{$transArray[sec].udhaarBhav}</td>
	      	<td align="center" NOWRAP>{$transArray[sec].date|date_format :"%d-%m-%Y"}</td>
	      </tr>
	      {/if}
	      {/section}
	    </table>
	  </td>
	  </tr>
	  <tr>
	  <td colspan="4">
	    <table>
	      <tr>
          <td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
	    	  <td class="table2" align="center">{$totalJama}</td>
	      </tr>
	    </table>
	  </td>
	  <td colspan="5">
	    <table>
	      <tr>
	      	<td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	      	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$totalUdhar}</td>
	      	<td class="table2" align="center" colspan="4"></td>
	      </tr>
	    </table>
	  </td>
	  </tr>
	  </table>
	  <table align="center">
	      <tr>
	     {if $total  gt 0}
	       <td colspan="7" align="center"><font color="green" size="4"><b>JAMA TOTAL :{$total}</font></b></td>
	     {elseif $total lt 0}
	       <td colspan="7" align="center"><font color="red" size="4"><b>UDHAR TOTAL :{$total}</font></b></td>
	     {else}
	       <td colspan="7" align="center"><font color="blue" size="4"><b>TOTAL :{$total}</font></b></td>
	     {/if}
	      </tr>
	    </table>
	</td>
</tr>
{else}
<tr>
	<td align="center">
		<font color="red" size="5">No Records</font>
	</td>
</tr>
{/if}
</table>